From 3d9190186498473b710f9d0f952ffd3e56ad4e20 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Mon, 30 Oct 2006 14:14:46 +0000 Subject: [PATCH] [LINUX] Use CONFIG_XEN_COMPAT_030002 where possible. Signed-off-by: Jan Beulich --- linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c | 4 ++++ .../include/asm-i386/mach-xen/asm/hypercall.h | 10 ++++++++++ .../include/asm-i386/mach-xen/asm/hypervisor.h | 8 ++++++++ .../include/asm-i386/mach-xen/setup_arch_post.h | 4 ++++ .../include/asm-x86_64/mach-xen/asm/hypercall.h | 10 ++++++++++ .../include/asm-x86_64/mach-xen/setup_arch_post.h | 4 ++++ 6 files changed, 40 insertions(+) diff --git a/linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c b/linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c index 5dc6646cf5..7263ef4dea 100644 --- a/linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c +++ b/linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c @@ -325,6 +325,7 @@ int xen_create_contiguous_region( success = (exchange.nr_exchanged == (1UL << order)); BUG_ON(!success && ((exchange.nr_exchanged != 0) || (rc == 0))); BUG_ON(success && (rc != 0)); +#ifdef CONFIG_XEN_COMPAT_030002 if (unlikely(rc == -ENOSYS)) { /* Compatibility when XENMEM_exchange is unsupported. */ if (HYPERVISOR_memory_op(XENMEM_decrease_reservation, @@ -341,6 +342,7 @@ int xen_create_contiguous_region( BUG(); } } +#endif /* 3. Map the new extent in place of old pages. */ for (i = 0; i < (1UL<